﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace PapnKukn.Silverlight.SilverKnight
{
    public partial class Page : UserControl
    {
        #region Constructor
        public Page()
        {
            InitializeComponent();
        }
        #endregion

        #region Events
        private void ucBoard_GameOver(object sender, RoutedEventArgs e)
        {
            ucModal.Score = ucBoard.Score;
            ucModal.Show();
        }

        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            ucBoard.Reload();
        }

        private void ucModal_RefreshScoreRequest(object sender, RoutedEventArgs e)
        {
            ucScore.Reload();
        }
        #endregion
    }
}
